﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.OutputDto._0730
{
    /// <summary>
    ///  获取我收藏的商品列表
    /// </summary>
    public class OutputMyGoods: MyGoodsFavorite
    {
        /// <summary>
        ///  价格列表
        /// </summary>
        public List<PriceList> filePrice { get; set; }
        /// <summary>
        ///  折扣价格列表
        /// </summary>
        public List<PriceList> ratePrice { get; set; }
        /// <summary>
        ///  缩略图信息
        /// </summary>
        public List<T_DocBagFileRecord> photoOption { get; set; }
    }
    public class MyGoodsFavorite
    {
        /// <summary>
        ///  商品id
        /// </summary>
        public int fileID { get; set; }
        /// <summary>
        ///  商品名称
        /// </summary>
        public string fileName { get; set; }
        /// <summary>
        ///  商品简介
        /// </summary>
        public string fileNote { get; set; }
        /// <summary>
        ///  所属目录ID
        /// </summary>
        public int folderID { get; set; }
        /// <summary>
        ///  所属目录名称
        /// </summary>
        public string folderName { get; set; }
        /// <summary>
        ///  店铺ID
        /// </summary>
        public int storeID { get; set; }
        /// <summary>
        ///  店铺名称
        /// </summary>
        public string storeName { get; set; }
        /// <summary>
        ///  收藏人数
        /// </summary>
        public int holdNum { get; set; }
        /// <summary>
        ///  购买（付款）人数
        /// </summary>
        public int payNum { get; set; }
        /// <summary>
        ///  转我收藏的商品
        /// </summary>
        /// <returns></returns>
        public OutputMyGoods ToOutputMyGoods()
        {
            return new OutputMyGoods {
                fileID=this.fileID,
                fileName=this.fileName,
                fileNote=this.fileNote,
                folderID=this.folderID,
                folderName=this.folderName,
                storeID=this.storeID,
                storeName=this.storeName,
                holdNum=this.holdNum,
                payNum=this.payNum
            };
        }
    }
}